package vo;

import java.util.Date;

import tool.DateUtils;

public class Item {

	private String id;

	private long num;
	private String url;
	private byte[] rawData;
	private String pageString;
	private String encoding;
	private boolean status = true;
	private String content;
	private String title;
	private Date pubTime;
	private Date crawlTime;
	private int replyNum;
	private int transNum;
	private String type;
	private String source;
	private String ip;
	private String author;
	private String topicIds = "";

	// private Template template;
	// private ParsedHtml parsedHtml;

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Date getPubTime() {
		return pubTime;
	}

	public String getPubTimeStr() {
		return DateUtils.date2Str(pubTime, "-");
	}

	public void setPubTime(Date pubTime) {
		this.pubTime = pubTime;
	}

	public Date getCrawlTime() {
		return crawlTime;
	}

	public void setCrawlTime(Date crawlTime) {
		this.crawlTime = crawlTime;
	}

	public int getReplyNum() {
		return replyNum;
	}

	public void setReplyNum(int replyNum) {
		this.replyNum = replyNum;
	}

	public int getTransNum() {
		return transNum;
	}

	public void setTransNum(int transNum) {
		this.transNum = transNum;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	// public List<OUrl> getOurls() {
	// return ourls;
	// }
	//
	// public void setOurls(List<OUrl> ourls) {
	// this.ourls = ourls;
	// }

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public byte[] getRawData() {
		return rawData;
	}

	public void setRawData(byte[] rawData) {
		this.rawData = rawData;
	}

	public String getEncoding() {
		return encoding;
	}

	public void setEncoding(String encoding) {
		this.encoding = encoding;
	}

	public boolean isStatus() {
		return status;
	}

	public void setStatus(boolean status) {
		this.status = status;
	}

	public String getSource() {
		return source;
	}

	public void setSource(String source) {
		this.source = source;
	}

	// public Template getTemplate() {
	// return template;
	// }

	// public void setTemplate(Template template) {
	// this.template = template;
	// }

	public String getPageString() {
		return pageString;
	}

	public void setPageString(String pageString) {
		this.pageString = pageString;
	}

	// public ParsedHtml getParsedHtml() {
	// return parsedHtml;
	// }
	//
	// public void setParsedHtml(ParsedHtml parsedHtml) {
	// this.parsedHtml = parsedHtml;
	// }

	public long getNum() {
		return num;
	}

	public void setNum(long num) {
		this.num = num;
	}

	public String getTopicIds() {
		return topicIds;
	}

	public void setTopicIds(String topicIds) {
		this.topicIds = topicIds;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String toString() {
		return this.id + "," + this.author + "," + this.content + "," + this.ip + "," + this.source + "," + this.url;
	}

}
